<template>
<div class="c-swiper">
  <van-swipe :autoplay="3000">
    <van-swipe-item v-for="(b, index) in banners" :key="index">
      <img  :src="'http://wlsqbucket.img-cn-shenzhen.aliyuncs.com/'+b.img"/>
    </van-swipe-item>
  </van-swipe>
</div>
</template>
<script>
export default {
  props: ['banners'],
  crrated(){
    console.log(this.banners);
  }
}
</script>
<style lang="scss">
@import '../../assets/styles/common.scss';
.c-swiper {
    img {
        width: 100%;
        height: 100%;
        background-size: cover;
    }
    .van-swipe__track{
      height: px2rem(300px);
    }
}
</style>
